<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>客户管理</title>

<#--<%@include file="/WEB-INF/views/common/link.jsp" %>-->
    <#include "../common/link.ftl"><!-- freemarker的include,包含另外一个模板文件,
     需要使用相对当前的模板文件的路径,再去找另一个模板-->


</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

<#--<%@include file="/WEB-INF/views/common/navbar.jsp" %>-->
    <#include "../common/navbar.ftl">

    <!--菜单回显 声明变量的作用 ,实现界面模块的高亮效果-->
<#--<c:set var="currentMenu" value="customer"/>-->
        <#assign currentMenu="customerTransfer"/>

<#-- <%@include file="/WEB-INF/views/common/menu.jsp" %>-->
        <#include "../common/menu.ftl">

    <div class="content-wrapper">
        <section class="content-header">
            <h1>移交历史管理</h1>
        </section>
        <section class="content">
            <div class="box">
                <!--高级查询--->
                <form class="form-inline" id="searchForm" action="/customerTransfer/list.do" method="post">
                    <input type="hidden" name="currentPage" id="currentPage" value="1">
                    <div class="form-group">
                        <label for="keyword">关键字:</label>
                        <input type="text" class="form-control" id="keyword" name="keyword" value="${qo.keyword!}" placeholder="请输入姓名">
                    </div>
                    <button id="btn_query" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span> 查询
                    </button>
                </form>
                <!--编写内容-->
                <div class="box-body table-responsive no-padding ">
                    <table class="table table-hover table-bordered">
                        <tr>
                            <th>编号</th>
                            <th>客户姓名</th>
                            <th>操作日期</th>
                            <th>操作人</th>
                            <th>旧销售人员</th>
                            <th>新销售人员</th>
                            <th>移交原因</th>
                        </tr>

                    <#-- <c:forEach items="${resultPage.dataList}" var="customer" varStatus="vs">-->
                    <#-- 如果freemarker 如果在取值的时候出现空值,会报错.需要加! 单一:${customer.name!}
                     多集: ${(employee.deptId.sn)!}-->
                        <#list (PageInfo.list)! as CustomerTransfer>
                             <tr>
                                 <td>${CustomerTransfer_index+1}</td><!-- 从零开始 -->
                                 <td>${(CustomerTransfer.customer.name)!}</td>
                                <td>${((CustomerTransfer.operateTime?string('yyyy-MM-dd')))!}</td>
                                 <td>${(CustomerTransfer.operator.name)!}</td>
                                 <td>${(CustomerTransfer.oldSeller.name)!}</td>
                                 <td>${(CustomerTransfer.newSeller.name)!}</td>
                                 <td>${(CustomerTransfer.reason)!}</td>
                        </#list>
                    </table>
                    <!-- 分页 -->
                <#include "../common/page.ftl">
                </div>
        </section>
    </div>
     <#include "../common/footer.ftl">
</div>